/**
 * 
 */
package com.epcs.subGNuevosNegocios.eci.conexion;

import java.sql.Connection;
//import java.sql.DriverManager;
//import java.sql.PreparedStatement;
//import java.sql.ResultSet;
//import java.sql.SQLException;
//import java.sql.SQLTimeoutException;
//import java.util.Hashtable;

//import javax.naming.Context;
//import javax.naming.InitialContext;
//import javax.naming.NamingException;
//import javax.sql.DataSource;
//
//import com.epcs.subGNuevosNegocios.eci.exception.ConnectionOracleException;

//import oracle.jdbc.pool.OracleDataSource;
//import weblogic.jndi.WLContext;
//import weblogic.jndi.WLInitialContextFactory;


/**
 * @author Nicolas Figueroa
 *
 */
public class ConexionOracle {
	
/*	private static String localAddr;
	private static int localPort;

	@Deprecated
	public static synchronized String getLocalAddr() {
		return localAddr;
	}

	@Deprecated
	public static synchronized void setLocalAddr(String localAddr) {
		ConexionOracle.localAddr = localAddr;
	}

	@Deprecated
	public static synchronized int getLocalPort() {
		return localPort;
	}

	@Deprecated
	public static synchronized void setLocalPort(int localPort) {
		ConexionOracle.localPort = localPort;
	}
*/
	public static Connection getConnection()
	{
		Connection connection = null;
		
		connection = DataSourceJndiConection.getInstance().getConnection();
		
		return connection;
	}
}
